package com.atguigu.tingshu.common.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * <a href="https://www.shallowrecall.top/">Recall`Blog</a></br>
 * <a href="https://github.com/ShallowRecall">GitHub</a>
 *
 * @author Recall
 * @createTime 2025/03/20 21:15
 **/
@Data
@ConfigurationProperties(prefix = "app.threadpool")
public class ThreadPoolProperties {
    private Integer corePoolSize = 2 * Runtime.getRuntime().availableProcessors();
    private Integer maxPoolSize = 4 * Runtime.getRuntime().availableProcessors();
    private Integer queueCapacity = 50;
}
